package com.example.Aop;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.EnableAspectJAutoProxy;

/**
 * @Description TODO
 * @Date 2024/5/16 0:05
 * @Created by houjunfeng
 */
@Configuration
@EnableAspectJAutoProxy
public class AOPConfiguration {

    @Bean
    public Target getTarget(){
        return new Target();
    }

    @Bean
    public Proxy getProxy(){
        return new Proxy();
    }
}
